package com.wendy.config.api;

import com.wendy.common.core.constant.ServiceNameConstants;
import com.wendy.config.api.factory.RemoteConfigFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务
 * 
 * @author wendy
 */
@FeignClient(contextId = "remoteConfigService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteConfigFallbackFactory.class)
public interface RemoteConfigService
{
    /**
     * 通过用户名查询用户信息
     *
     * @param configKey 用户名
     * @return 结果
     */
    @GetMapping(value = "/configKey/{configKey}")
    public String getConfigKey(@PathVariable("configKey") String configKey);
}
